﻿@using GSLMS.Entity
@using GSLMS.Entity.Enum
@model IEnumerable<GSLMS.Entity.TB_ADU_CONARR>
@{
    Layout = null;
    int i = 1;
    var SearchParma = ViewData["SearchParma"] as GSLMS.Entity.TB_ADU_CONARR ?? new GSLMS.Entity.TB_ADU_CONARR();
    var systemID = ViewData["systemID"] as SelectList;
    
    SearchParma.DirectorAuditTime = DateTime.Now.AddMonths(-1);
    SearchParma.DirectorAuditTime_End = DateTime.Now;
    ViewData["reSearchDiv"] = "divHRiskAuditConAudit";        
}

<div id="divHRiskAuditConAudit">
    <form id="pagerForm" method="get" action="RiskAudit/Director/DirectorDefault/HConAudit?action=search&OpID=@ViewData["OperateID"]">
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="numPerPage" value="@ViewData["pageSize"]" />
    <input type="hidden" name="RowCount" value="@ViewData["RowCount"]" />
    <input type="hidden" name="CustName" value="@SearchParma.CustName" />
    <input type="hidden" name="SystemID" value="@SearchParma.SystemID" />
    </form>
    <div class="pageHeader">
        <form  onsubmit="return divSearch(this,'divHRiskAuditConAudit')" id="Form_@ViewData["CurrentController"]" action="RiskAudit/Director/DirectorDefault/HConAudit?action=search&OpID=@ViewData["OperateID"]"
    method="post">
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <th>
                        客户名称：
                    </th>
                    <td>
                        @Html.TextBox("CustName", SearchParma.CustName, new {@style="width:100px;" })
                    </td>
                    <th>
                        来源：
                    </th>
                    <th>
                        @Html.DropDownList("SystemID", systemID, GSLMS.WebAPP.HelperCommon.SelectDefaultValue, new { @style = "width:110px;" })
                    </th>
                     <th>
                        风控通过日期：
                    </th>
                    <th>
                       @Html.TextBox("DirectorAuditTime", SearchParma.DirectorAuditTime, new { @class = "date",@style = "width:70px;", format = "yyyy-MM-dd", @maxDate = "%y-%M-%d", @readonly = "true", formatDate = "yyyy-MM-dd" })
                    </td>
                    <th colspan="3">
                        ~
                        @Html.TextBox("DirectorAuditTime_End", SearchParma.DirectorAuditTime_End, new { @class = "date", @style = "width:70px;", format = "yyyy-MM-dd", @maxDate = "%y-%M-%d", @readonly = "true", formatDate = "yyyy-MM-dd" })
                  
                    </th>
                    
                    <th align="right">
                        <div class="subBar">
                            <ul>
                                <li>
                                    <div class="buttonActive">
                                        <div class="buttonContent">
                                            <button type="submit" name="submit">
                                                检索</button></div>
                                    </div>
                                </li>
                                <li>
                                    <div class="buttonActive">
                                        <div class="buttonContent">
                                            <button type="reset" name="reset">
                                                重置</button></div>
                                    </div>
                                </li>
                            </ul>
                        </div>
                    </th>
                </tr>
            </table>
        </div>
        </form>
    </div>
    <div class="pageContent">
        <table class="list" layouth="360" id="tableDirectorHConAduList">
            <thead>
                <tr class="header">
                    <th style="width:35px;">
                        来源
                    </th>
                    <th style="width:70px;">
                        申请编号
                    </th>
                    <th style="width:100px;">
                        客户名称
                    </th>
                    <th style="width:80px;">
                        业务类别
                    </th>
                    <th style="width:80px;">
                       申请额度(万元)
                    </th>
                    <th style="width:80px;text-align:center;">
                        风控通过日期
                    </th>
                    <th style="width:80px;text-align:center;">
                        审议安排日期
                    </th>
                    <th style="width:70px;">
                        客户经理
                    </th>
                    <th style="width:60px;">操作</th>
                </tr>
            </thead>
            @if (Model != null)
            {
                foreach (var item in Model)
                {            
                <tr target="AuditConAdu_proID" rel="@item.PROID" conaduflag="@item.ConAduFlag">
                    <td>
                       @((ApplyEnum.RegSystemID)item.SystemID)
                    </td>
                    <td>
                       <a href="DianDang/Apply/ProInfo/Details/@item.PROID?OpID=@ViewData["OperateID"]" Target="dialog" rel="DirectorCoArrV"  title="查看立项申请【@item.CustName】">
                            @item.ApplyNo
                        </a>
                    </td>
                    <td>
                        @item.CustName
                    </td>
                    
                    <td style="text-align:center;">
                        @((ApplyEnum.RegBussType)item.BussType)
                    </td>
                    <td style="text-align:right;">@item.Amount.ToString("N")
                    </td>
                    <td style="text-align:center;">@(item.DirectorAuditTime.Value.ToString("yyyy-MM-dd HH:mm:ss"))
                    </td>
                    <td style="text-align:center;">
                       @(item.STATUS > -1 ? item.ARRDATE.Value.ToString("yyyy-MM-dd HH:mm:ss") : "")
                    </td>
                    <td style="text-align:center;">
                        @item.SalesMan
                    </td>
                    <td style="text-align:center;">
                       <a href="RiskAudit/AuditCon/AuditConAdu/Create/@item.PROID?conaduflag=@(item.ConAduFlag)" Target="dialog" rel="HDirectorConAduV">
                          查看
                        </a>
                    </td>
                </tr>
                    i += 1;
                }
            }
        </table>
    </div>
    @Html.Partial("PageBar")
    
</div>

